package cn.itrip.trade.config;

import java.io.InputStream;

/****
 * 微信的配置类
 */
public class WXPayConfig implements com.github.wxpay.sdk.WXPayConfig {

    //微信支付分配的公众账户ID(企业号未corpid即为此appid)
    private String appID;

    //微信支付分配的商户号
    private String mchID;

    //
    private String key;

    //异步接收微信支付结果通知的回调地址，通知url必须为外网可以访问的url,不能携带参数。
    private String notifyUrl;

    private String successUrl;

    private String failUrl;

    public String getAppID() {
        return appID;
    }

    public void setAppID(String appID) {
        this.appID = appID;
    }

    public String getMchID() {
        return mchID;
    }

    public void setMchID(String mchID) {
        this.mchID = mchID;
    }

    public String getKey() {
        return key;
    }

    @Override
    public InputStream getCertStream() {
        return null;
    }

    @Override
    public int getHttpConnectTimeoutMs() {
        return 0;
    }

    @Override
    public int getHttpReadTimeoutMs() {
        return 0;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getSuccessUrl() {
        return successUrl;
    }

    public void setSuccessUrl(String successUrl) {
        this.successUrl = successUrl;
    }

    public String getFailUrl() {
        return failUrl;
    }

    public void setFailUrl(String failUrl) {
        this.failUrl = failUrl;
    }
}
